﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Spectrum="clr-namespace:WPFSoundVisualizationLib;assembly=WPFSoundVisualizationLib"
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="SpectrumTest.MainWindow"
            WindowState="Maximized"
        AllowsTransparency="True"
        WindowStyle="None"
        Background="Transparent">
    <Grid>
        <Grid x:Name="SpectrumPanel">
            <Grid.Effect>
                <BlurEffect Radius="9"/>
            </Grid.Effect>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Rectangle RenderTransformOrigin="0.5,0.5">
                <Rectangle.RenderTransform>
                    <ScaleTransform ScaleX="-1"/>
                </Rectangle.RenderTransform>
                <Rectangle.Fill>
                    <VisualBrush Visual="{Binding ElementName=SpectrumAnalyzer}" Stretch="None" AlignmentX="Left" AlignmentY="Bottom"/>
                </Rectangle.Fill>
            </Rectangle>
            <Spectrum:SpectrumAnalyzer x:Name="SpectrumAnalyzer" Grid.Column="1" PeakStyle="{x:Null}" AveragePeaks="True" />
        </Grid>
        <Label FontFamily="Arial" />
    </Grid>
</Window>
